﻿namespace SAD.Common
{
    using System;
    using System.Text;

    public class EnvironmentVariables
    {
        private EnvironmentVariables(){}

        public static string DataServerUri
        {
            get
            {
                if (m_DataServerUrl == null)
                {
                    if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["DataServerUri"]))
                    {
                        m_DataServerUrl = System.Configuration.ConfigurationManager.AppSettings["DataServerUri"];
                    }
                    else
                    {
                        m_DataServerUrl = "";
                    }
                }
                return m_DataServerUrl;
            }
        }
        private static string m_DataServerUrl = null;
    }
}